home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- #
-
-
- if(description)
- {
- script_id(15627);
- script_bugtraq_id(11060);
- script_version("$Revision: 1.1 $");
-
- name["english"] = "CSCef46191";
-
- script_name(english:name["english"]);
-
- desc["english"] = "
-
- The remote router contains a version of IOS which has flaw in the telnet service
- which might allow an attacker to disable the administation of the remote
- router by SSH, HTTP and telnet.
-
- CISCO identifies this vulnerability as bug id CSCef46191
-
- An attacker may use this flaw to render this router un-manageable
-
- Solution : http://www.cisco.com/warp/public/707/cisco-sa-20040827-telnet.shtml
- Risk Factor : High
-
- *** As Nessus solely relied on the banner of the remote host
- *** this might be a false positive
- ";
- script_description(english:desc["english"]);
-
- summary["english"] = "Uses SNMP to determine if a flaw is present";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is (C) 2004 Tenable Network Security");
-
- script_family(english:"CISCO");
-
- script_dependencie("snmp_sysDesc.nasl",
- "snmp_cisco_type.nasl");
- script_require_keys("SNMP/community",
- "SNMP/sysDesc",
- "CISCO/model");
- exit(0);
- }
-
-
- # The code starts here
- ok=0;
- os = get_kb_item("SNMP/sysDesc"); if(!os)exit(0);
- hardware = get_kb_item("CISCO/model"); if(!hardware)exit(0);
-
-
-
-
- # Check for the required operating system...
- #----------------------------------------------------------------
- # Is this IOS ?
- if(!egrep(pattern:".*(Internetwork Operating|IOS).*", string:os))exit(0);
- # 12.0
- if(egrep(string:os, pattern:"((12\.0\(([0-9]|[1-1][0-9]|2[0-7])\)|12\.0)|12\.0\(28\)),"))ok=1;
-
- # 12.1
- if(egrep(string:os, pattern:"(12\.1\(([0-9]|[1-1][0-9]|2[0-5])\)|12\.1),"))ok=1;
-
- # 12.1E
- if(egrep(string:os, pattern:"((12\.1\(([0-9]|1[0-9])\)|12\.1)E[0-9]*|12\.1\(20\)E[0-4]),"))ok=1;
-
- # 12.1EA
- if(egrep(string:os, pattern:"((12\.1\(([0-9]|[1-1][0-9]|2[0-1])\)|12\.1)EA[0-9]*|12\.1\(22\)EA[0-1]),"))ok=1;
-
- # 12.2
- if(egrep(string:os, pattern:"(12\.2\(([0-9]|[1-1][0-9]|2[0-6])\)|12\.2),"))ok=1;
-
- # 12.2BC
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-4])\)|12\.2)BC[0-9]*|12\.2\(15\)BC[0-0]),"))ok=1;
-
- # 12.2EW
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-7])\)|12\.2)EW[0-9]*|12\.2\(18\)EW[0-1]),"))ok=1;
-
- # 12.2JK
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-4])\)|12\.2)JK[0-9]*|12\.2\(15\)JK[0-1]),"))ok=1;
-
- # 12.2S
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-7])\)|12\.2)S[0-9]*|12\.2\(18\)S[0-5]),"))ok=1;
-
- # 12.2SE
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-9])\)|12\.2)SE[0-9]*|12\.2\(20\)SE[0-2]),"))ok=1;
-
- # 12.2SU
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-9])\)|12\.2)SU[0-9]*|12\.2\(20\)SU[0-2]),"))ok=1;
-
- # 12.2SV
- if(egrep(string:os, pattern:"(12\.2\(([0-9]|[1-1][0-9]|2[0-3])\)|12\.2)SV[0-9]*,"))ok=1;
-
- # 12.2SXD
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-7])\)|12\.2)SXD[0-9]*|12\.2\(18\)SXD[0-0]),"))ok=1;
-
- # 12.2T
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-2])\)|12\.2)T[0-9]*|12\.2\(13\)T([0-9]|1[0-3])),"))ok=1;
-
- # 12.2XR
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-4])\)|12\.2)XR[0-9]*|12\.2\(15\)XR[0-1]),"))ok=1;
-
- # 12.3
- if(egrep(string:os, pattern:"(12\.3\(([0-9]|1[0-1])\)|12\.3),"))ok=1;
-
- # 12.3BC
- if(egrep(string:os, pattern:"((12\.3\([0-4]\)|12\.3)BC[0-9]*|12\.3\(5\)BC[0-1]),"))ok=1;
-
- # 12.3JA
- if(egrep(string:os, pattern:"(12\.3\([0-1]\)|12\.3)JA[0-9]*,"))ok=1;
-
- # 12.3T
- if(egrep(string:os, pattern:"((12\.3\([0-1]\)|12\.3)T[0-9]*|12\.3\(2\)T[0-7]),"))ok=1;
-
- # 12.3XD
- if(egrep(string:os, pattern:"((12\.3\([0-3]\)|12\.3)XD[0-9]*|12\.3\(4\)XD[0-3]),"))ok=1;
-
- # 12.3XG
- if(egrep(string:os, pattern:"((12\.3\([0-3]\)|12\.3)XG[0-9]*|12\.3\(4\)XG[0-1]),"))ok=1;
-
- # 12.3XI
- if(egrep(string:os, pattern:"((12\.3\([0-6]\)|12\.3)XI[0-9]*|12\.3\(7\)XI[0-1]),"))ok=1;
-
- # 12.3XK
- if(egrep(string:os, pattern:"((12\.3\([0-3]\)|12\.3)XK[0-9]*|12\.3\(4\)XK[0-0]),"))ok=1;
-
- # 12.3XR
- if(egrep(string:os, pattern:"((12\.3\([0-6]\)|12\.3)XR[0-9]*|12\.3\(7\)XR[0-2]),"))ok=1;
-
- # 12.3XU
- if(egrep(string:os, pattern:"((12\.3\([0-7]\)|12\.3)XU[0-9]*|12\.3\(8\)XU[0-1]),"))ok=1;
-
- # 12.3YD
- if(egrep(string:os, pattern:"(12\.3\([0-7]\)|12\.3)YD[0-9]*,"))ok=1;
-
-
- #----------------------------------------------
-
- if(ok)security_hole(port:161, proto:"udp");
-